#ifndef _PLAYERMANAGER_H_
#define _PLAYERMANAGER_H_

#include <string>

#include "Player.h"

class CPlayerManager
{
	//typedef boost::shared_ptr<CPlayer> CPlayerPtr;
	static CPlayerManager ins;

	CPlayerManager(void);
	~CPlayerManager(void);

	CPlayerManager(const CPlayerManager &rhs);
	CPlayerManager& operator=(const CPlayerManager &rhs);
	
	void CreatePlayer(const std::string &name);
public:
	static CPlayerManager& GetIns();

	void ReleasePlayer();

	bool IsPlayerOpen();
	void SetPlayer(const std::string &name);
	std::string GetMediaTitle();
	int GetCurrentTime();
private:
	CPlayer* m_player;
};

#endif

